home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / Status Bar Date and Time.sd < prev    next >
INI File  |  2004-06-28  |  1KB  |  66 lines

  1. [SUBJECT]
  2. Description=Displays the date and the time in the viewers status bar
  3. ImageIndex=-1
  4. Folder=Text Effects
  5.  
  6.  
  7.  
  8. [HEAD_TEXT]
  9. ;<script language="JavaScript">
  10. ;<!--
  11. ;var thetimer = null;
  12. ;
  13. ;function showtime() {
  14. ;  DaysOfWeek = new Array(7);
  15. ;  DaysOfWeek[0] = "Sunday";
  16. ;  DaysOfWeek[1] = "Monday";
  17. ;  DaysOfWeek[2] = "Tuesday";
  18. ;  DaysOfWeek[3] = "Wednesday";
  19. ;  DaysOfWeek[4] = "Thursday";
  20. ;  DaysOfWeek[5] = "Friday";
  21. ;  DaysOfWeek[6] = "Saturday";
  22. ;  Months = new Array(12);
  23. ;  Months[0] = "January";
  24. ;  Months[1] = "February";
  25. ;  Months[2] = "March";
  26. ;  Months[3] = "April";
  27. ;  Months[4] = "May";
  28. ;  Months[5] = "June";
  29. ;  Months[6] = "July";
  30. ;  Months[7] = "August";
  31. ;  Months[8] = "September";
  32. ;  Months[9] = "October";
  33. ;  Months[10] = "November";
  34. ;  Months[11] = "December";
  35. ;  var now = new Date();
  36. ;  var year = now.getYear();
  37. ;  if (year < 2000)
  38. ;      year += 1900; 
  39. ;  var mins = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
  40. ;  var secs = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
  41. ;  window.status = " " + DaysOfWeek[now.getDay()] + "     " + Months[now.getMonth()] + " " + now.getDate() + ", " + year + "     " + now.getHours() + mins + secs;
  42. ;  thetimer = setTimeout("showtime()",1000);
  43. ;}
  44. ;
  45. ;//-->
  46. ;
  47. ;</script>
  48. ;
  49.  
  50.  
  51. [BODY_TAG]
  52. ;onLoad="showtime()"
  53.  
  54.  
  55.  
  56. [BODY_TEXT]
  57.  
  58.  
  59.  
  60.  
  61. [``]
  62. Kind=S
  63. Value=
  64.  
  65.  
  66.